<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>


<script type="text/javascript">
	$(function() {
		$('#index_reg_form').form({
			url : 'pcOperatorAction!saveOp.action',
			success : function(r) {
				var obj = jQuery.parseJSON(r);
				if (obj.success) {
					$('#index_reg_dialog').dialog('close');

				}
				$.messager.alert({
					title : '提示',
					msg : obj.msg
				});
			}
		});

	});
</script>


<div id="index_reg_dialog" class="easyui-dialog" data-options="title:'注册',modal:true,closed:true,
	buttons: [{text:'注册',
				iconCls:'icon-edit',
				handler:function(){
					$('#index_reg_form').submit();
				}
			}]" style="width: 500px; height: 400px">
	<form id="index_reg_form" method="post"  style="margin-top: 5%; margin-left: 10%">
		<div style="margin-bottom: 20px; margin-left: 10%">
			<div style="float: top; font-size: 12pt">
				<label>用户名</label>
			</div>
			<input class="easyui-textbox" name="account" iconWidth="20" style="width: 80%; height: 50px; padding: 20px;" data-options="required:true,validType:'username'">
		</div>
		<div style="margin-bottom: 20px; margin-left: 10%">
			<div style="float: top; font-size: 12pt">
				<label>密码</label>
			</div>
			<input class="easyui-passwordbox" name="password" iconWidth="20" style="width: 80%; height: 50px; padding: 20px" data-options="required:true,validType:'minLength[5]'">
		</div>
		<div style="margin-left: 10%">
			<div style="float: top; font-size: 12pt">
				<label">员工信息</label>
			</div>
			<input class="easyui-combobox" name="pkStuff" iconWidth="20" style="width: 80%; height: 50px; padding: 20px" data-options="required:true,missingMessage:'如果没有员工信息，请联系管理员添加！',
				valueField:'id',
				textField:'name',
				editable:false,
				url:'stuffAction!getNotRegStuff.action'">
		</div>
	</form>
</div>